package com.ldl.servlet.admin;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ldl.entity.Ldl;
import com.ldl.service.LdlService;
import com.ldl.service.impl.LdlServiceImpl;

/**
 * @author Administrator
 * Author : L.D.L
 * E-mail : 1419485293@qq.com
 * Date : 2020年7月29日下午7:16:40
 */
public class LdlSeekServlet extends HttpServlet{

	private LdlService ldlService = new LdlServiceImpl();
	Ldl ldl = new Ldl();
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		int ldlId = -1;
		ldlId = Integer.valueOf(request.getParameter("ldlId"));
		ldl = ldlService.selete(ldlId);
		request.setAttribute("ldl", ldl);
		request.getRequestDispatcher("/admin/ldl-seek.jsp").forward(request, response);
	}
}
